<html lang="java">
<head>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"  crossorigin="anonymous">
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }
        .fixed-width {
            width: 280px; /* 固定宽度为300像素 */
            background-color: lightpink;
            padding: 10px;
            border: 1px solid black;
            height: 220px;
            align-content: center;
        }
        .fixed-width form button {
            background-color: #6cf;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .fixed-width form button:hover {
            background-color: #4894ba;
        }
    </style>
</head>
<body>
<div class="fixed-width">
    <form action="loginValidate" method="post">
        <div class="form-group">
            <label for="exampleInputEmail1">Username</label>
            <input type="text" class="form-control" name="username" id="exampleInputEmail1" aria-describedby="emailHelp">
            <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">Password</label>
            <input type="password" name="password" class="form-control" id="exampleInputPassword1">
        </div>
        <div class="form-group form-check">
            <label class="form-check-label" for="exampleRadios1">请选择身份：</label>
            <div class="form-check">
                <input class="form-check-input" type="radio" name="role" id="exampleRadios1" value="1" checked>
                <label class="form-check-label" for="exampleRadios1">
                    管理员
                </label>
            </div>
            <div class="form-check">
                <input class="form-check-input" type="radio" name="role" id="exampleRadios2" value="2">
                <label class="form-check-label" for="exampleRadios2">
                    教师
                </label>
            </div>
            <div class="form-check">
                <input class="form-check-input" type="radio" name="role" id="exampleRadios3" value="3">
                <label class="form-check-label" for="exampleRadios2">
                    学生
                </label>
            </div>

        </div><br>
        <button type="submit" class="btn btn-primary">登录</button>
    </form>
</div>
<script src="/bootstrap/js/jquery.min.js"  crossorigin="anonymous"></script>
<script src="/bootstrap/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</body>

</html>